home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
btrees2.arc
/
BTGLOBAL.H
< prev
next >
Wrap
Text File
|
1984-12-14
|
1KB
|
50 lines
/* global stuff for all modules in btsys */
#define BTSETCOD(x,y,z) { gfilhand = x;\
gdatapt = y;\
return(z); }
#define SELF 384
#define INTCHAR 388
#define INTINT 392
#define INTKEY 396
#define LFILNAM 14
#define LBLEN 80
#define MAXFIL 4
#define SETUP 0x31
#define VECNO 0x60
#define STACKS 0x80
#define PARAS 4096
#define LKEYLEN 16
int openkt, /* # of open files */
gorder, /* order of btree */
gfcode, /* function code */
gfilhand, /* file handle */
gkeylen, /* key length */
gretcode, /* return code */
gdatapt; /*data pointer */
char gfilnam[LFILNAM + 1],/* file name */
gfilkey[LKEYLEN + 1] /* file key */
;
int *ip1, *ip2, *ip3;
char *cp1, *cp2, *cp3;
struct {
unsigned root;
unsigned handle;
unsigned keylen;
int *infobuf;
int *filbuf;
FILE *fdesc;
char *ikeyptr;
char filnam[LFILNAM + 1];
char curkey[LKEYLEN + 1];
} btfilar[MAXFIL + 1];
FILE *fp, *fopen();
char *calloc();
/* end of global */